<% vpn_gateways.each do |vpn_gateway| -%>
<% unless vpn_gateway.vpc_attachments.empty? -%>
resource "aws_vpn_gateway" "<%= module_name_of(vpn_gateway) %>" {
    vpc_id = "<%= vpn_gateway.vpc_attachments[0].vpc_id %>"
    availability_zone = "<%= vpn_gateway.availability_zone %>"
    tags {
<% vpn_gateway.tags.each do |tag| -%>
        "<%= tag.key %>" = "<%= tag.value %>"
<% end -%>
    }
}

<% end -%>
<% end -%>
